package com.onenine.app.model;

/**
 * 创建时间：2018/8/9 0009 18:59
 * 创建人：fly
 * 功能描述：点赞和评论数
 */
public class SpcCount {

    private int commentNum;
    private int likeNum;
    private int forwardNum;
    private boolean likeBln;

    public int getCommentNum() {
        return commentNum;
    }

    public int addCommentNum() {
        commentNum++;
        return commentNum;
    }

    public void setCommentNum(int commentNum) {
        this.commentNum = commentNum;
    }

    public int getLikeNum() {
        return likeNum;
    }

    public void setLikeNum(int likeNum) {
        this.likeNum = likeNum;
    }

    public int addLikeNum() {
        likeBln = true;
        likeNum++;
        return likeNum;
    }

    public int reduceLikeNum() {
        likeBln = false;
        if (likeNum > 0) {
            likeNum--;
        }
        return likeNum;
    }

    public boolean isLikeBln() {
        return likeBln;
    }

    public void setLikeBln(boolean likeBln) {
        this.likeBln = likeBln;
    }

    public int getForwardNum() {
        return forwardNum;
    }

    public int addForwardNum() {
        forwardNum++;
        return forwardNum;
    }

    public void setForwardNum(int forwardNum) {
        this.forwardNum = forwardNum;
    }
}
